Ext.onReady(function(){
	Ext.define('Mycontainer',{
		extend: 'Ext.window.Window',
		closable:true,
		boder : false,
		referenceHolder: true,
		items:[{
			xtype: 'container',
	        referenceHolder: true,
	        reference: 'innerCt1',
	        layout:'vbox',
	        items:[{
	        	
	                xtype: 'textfield',
	                fieldLabel:'姓名',
	                reference: 'a',
	                id: 'a1',
	                labelWidth:50
	            
	        },{
	        	
                xtype: 'textfield',
                fieldLabel:'密码',
                reference: 'b',
                inputType:'password',
                id: 'b1',
                labelWidth:50
        }]
		}]
	});
	var c =  Ext.create('Mycontainer');
	c.show();
	var inner = c.lookupReference('innerCt1');
	var updateClock= function(){
		console.log(inner.lookupReference('a').getValue());
	};
	var runner = Ext.create('Ext.util.TaskRunner');
	var task = runner.newTask({
		run:function(){
			updateClock();
		},
		interval :1000
	});
	task.start();
	c.on('close',function(){
		task.stop();
	})
});